.wrapper {
  width: 100%;
  height: 100vmax;
  background-color: #171f27;
  display: flex;
  justify-content: center;
  align-items: center;
  --target-border-color: rgb(92, 102, 112);
  --box-border-color: hsl(210deg 7.09% 50.2%);
  --box-bg-color: hsl(210deg, 15%, 20%);
}

.container {
  width: 100%;
  padding: 16px;
  perspective: 1000px;
  perspective-origin: 100% -100%;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
}

.playground {
  width: 300px;
  height: 300px;
  margin: 50px auto 50px;
  transform-style: preserve-3d;
  transition: all 0.5s;

  &.active {
    transform: skewY(18deg);
  }
}
.target {
  width: 300px;
  height: 300px;
  border-radius: 4px;
  box-sizing: border-box;
  position: absolute;
  transform-style: preserve-3d;
  border: 1px solid var(--target-border-color);
  display: grid;
  transition: all 0.5s;

  &.active {
    transform: translateX(-30px) scaleX(0.85) translateZ(30px);
  }
}

.out_box {
  padding: 3px;
  box-sizing: border-box;
  border-bottom: 2px dashed var(--target-border-color);
  &:last-child {
    border-bottom: none;
  }
}
#over.target {
  border: 1px solid transparent;
  
  & .out_box {
    border-bottom: 2px solid transparent;
    &:last-child {
      border-bottom: none;
    }
  }
}

#under.target .inner_box {
  opacity: 0;
}
#under.target.active {
  transform: scaleX(0.85) translateX(30px) translateZ(-30px);
}
.inner_box {
  width: 100%;
  height: 100%;
  border: 2px solid var(--box-border-color);
  background-color: var(--box-bg-color);
  box-sizing: border-box;
  border-radius: 4px;
}
.width {
  margin-top: 20px;
}
